package com.waypolice.pojo;

import java.io.Serializable;
import java.util.Date;

public class UpmsArchiveScope implements Serializable {
    private Integer scopeId;

    private Short orderNum;

    private String scopeName;

    private String retention;

    private Integer archivesId;

    private Date ctime;

    private Date mtime;

    private String str1;

    private String str2;

    private String str3;

    private String str4;

    private String str5;

    public Integer getScopeId() {
        return scopeId;
    }

    public void setScopeId(Integer scopeId) {
        this.scopeId = scopeId;
    }

    public Short getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Short orderNum) {
        this.orderNum = orderNum;
    }

    public String getScopeName() {
        return scopeName;
    }

    public void setScopeName(String scopeName) {
        this.scopeName = scopeName == null ? null : scopeName.trim();
    }

    public String getRetention() {
        return retention;
    }

    public void setRetention(String retention) {
        this.retention = retention == null ? null : retention.trim();
    }

    public Integer getArchivesId() {
        return archivesId;
    }

    public void setArchivesId(Integer archivesId) {
        this.archivesId = archivesId;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    public Date getMtime() {
        return mtime;
    }

    public void setMtime(Date mtime) {
        this.mtime = mtime;
    }

    public String getStr1() {
        return str1;
    }

    public void setStr1(String str1) {
        this.str1 = str1 == null ? null : str1.trim();
    }

    public String getStr2() {
        return str2;
    }

    public void setStr2(String str2) {
        this.str2 = str2 == null ? null : str2.trim();
    }

    public String getStr3() {
        return str3;
    }

    public void setStr3(String str3) {
        this.str3 = str3 == null ? null : str3.trim();
    }

    public String getStr4() {
        return str4;
    }

    public void setStr4(String str4) {
        this.str4 = str4 == null ? null : str4.trim();
    }

    public String getStr5() {
        return str5;
    }

    public void setStr5(String str5) {
        this.str5 = str5 == null ? null : str5.trim();
    }

    @Override
    public String toString() {
        return "UpmsArchiveScope{" +
                "scopeId=" + scopeId +
                ", orderNum=" + orderNum +
                ", scopeName='" + scopeName + '\'' +
                ", retention='" + retention + '\'' +
                ", archivesId=" + archivesId +
                ", ctime=" + ctime +
                ", mtime=" + mtime +
                ", str1='" + str1 + '\'' +
                ", str2='" + str2 + '\'' +
                ", str3='" + str3 + '\'' +
                ", str4='" + str4 + '\'' +
                ", str5='" + str5 + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof UpmsArchiveScope)) return false;

        UpmsArchiveScope that = (UpmsArchiveScope) o;

        if (scopeId != null ? !scopeId.equals(that.scopeId) : that.scopeId != null) return false;
        if (orderNum != null ? !orderNum.equals(that.orderNum) : that.orderNum != null) return false;
        if (scopeName != null ? !scopeName.equals(that.scopeName) : that.scopeName != null) return false;
        if (retention != null ? !retention.equals(that.retention) : that.retention != null) return false;
        if (archivesId != null ? !archivesId.equals(that.archivesId) : that.archivesId != null) return false;
        if (ctime != null ? !ctime.equals(that.ctime) : that.ctime != null) return false;
        if (mtime != null ? !mtime.equals(that.mtime) : that.mtime != null) return false;
        if (str1 != null ? !str1.equals(that.str1) : that.str1 != null) return false;
        if (str2 != null ? !str2.equals(that.str2) : that.str2 != null) return false;
        if (str3 != null ? !str3.equals(that.str3) : that.str3 != null) return false;
        if (str4 != null ? !str4.equals(that.str4) : that.str4 != null) return false;
        return str5 != null ? str5.equals(that.str5) : that.str5 == null;
    }

    @Override
    public int hashCode() {
        int result = scopeId != null ? scopeId.hashCode() : 0;
        result = 31 * result + (orderNum != null ? orderNum.hashCode() : 0);
        result = 31 * result + (scopeName != null ? scopeName.hashCode() : 0);
        result = 31 * result + (retention != null ? retention.hashCode() : 0);
        result = 31 * result + (archivesId != null ? archivesId.hashCode() : 0);
        result = 31 * result + (ctime != null ? ctime.hashCode() : 0);
        result = 31 * result + (mtime != null ? mtime.hashCode() : 0);
        result = 31 * result + (str1 != null ? str1.hashCode() : 0);
        result = 31 * result + (str2 != null ? str2.hashCode() : 0);
        result = 31 * result + (str3 != null ? str3.hashCode() : 0);
        result = 31 * result + (str4 != null ? str4.hashCode() : 0);
        result = 31 * result + (str5 != null ? str5.hashCode() : 0);
        return result;
    }
}